#include <iostream>
#include <pthread.h>
using namespace std;
#define NUM_THREADS 5

void *test(void *args)
{
    cout << "这是cpp子线程" << endl;
}

int main()
{
    pthread_t t[NUM_THREADS];
    for(int i = 0; i < NUM_THREADS; i++)
    {
        pthread_create(&t[i], NULL, test, NULL);
    }
    pthread_exit(NULL);
    return 0;
}
